package mysql

import "gorm.io/gorm"

type Furniture struct {
	gorm.Model
	Title   string `gorm:"type:varchar(30);not null;comment:'家具名称'"`
	BrandId int64  `gorm:"type:int(11);not null;comment:'品牌id'"`
	ClassId int64  `gorm:"type:int(11);not null;comment: '分类id'"`
}

type Class struct {
	gorm.Model
	Name string `gorm:"type:varchar(30);not null;comment:'分类名称'"`
}

type Brand struct {
	gorm.Model
	Name string `gorm:"type:varchar(30);not null;comment:'品牌名称'"`
}

type FurnitureClass struct {
	Furniture
	ClassName string
	BrandName string
}
